package JDBC.MySQL;

/**
 * <b>MySql Database account to define name ,username ,password ,... of the
 * database</b>
 *
 * @author Mohamed Tarek Salama
 * @version 1.2 BETA
 */
public class MSJ_DBAccount {

    private String DB_Name,
            DB_ip_or_local,
            DB_port,
            DB_Username,
            DB_Password;

    /**
     * <b>default constructor <i>(must use setter to set value of variables in
     * the constructor).</i></b>
     */
    public MSJ_DBAccount() {
    }

    /**
     * <b>Mini Constructor <i>(Use by local host IP and default port
     * "3306")</i></b>
     *
     * @param DB_Name : String : database name.
     * @param DB_Username : String : database username.
     * @param DB_Password : String : database password.
     */
    public MSJ_DBAccount(String DB_Name, String DB_Username, String DB_Password) {
        this.DB_Name = DB_Name;
        this.DB_Username = DB_Username;
        this.DB_Password = DB_Password;
    }

    /**
     * <b>Full Constructor</b>
     *
     * @param DB_Name : String : database name.
     * @param DB_ip_or_local : String : database ip or localhost string.
     * @param DB_port : String : database port.
     * @param DB_Username : String : database user name.
     * @param DB_Password :String : database password.
     */
    public MSJ_DBAccount(String DB_Name, String DB_ip_or_local, String DB_port, String DB_Username, String DB_Password) {
        this.DB_Name = DB_Name;
        this.DB_ip_or_local = DB_ip_or_local;
        this.DB_port = DB_port;
        this.DB_Username = DB_Username;
        this.DB_Password = DB_Password;
    }

    public String getDB_Name() {
        return DB_Name;
    }

    public void setDB_Name(String DB_Name) {
        this.DB_Name = DB_Name;
    }

    public String getDB_Password() {
        return DB_Password;
    }

    public void setDB_Password(String DB_Password) {
        this.DB_Password = DB_Password;
    }

    public String getDB_Username() {
        return DB_Username;
    }

    public void setDB_Username(String DB_Username) {
        this.DB_Username = DB_Username;
    }

    public String getDB_ip_or_local() {
        return DB_ip_or_local;
    }

    public void setDB_ip_or_local(String DB_ip_or_local) {
        this.DB_ip_or_local = DB_ip_or_local;
    }

    public String getDB_port() {
        return DB_port;
    }

    public void setDB_port(String DB_port) {
        this.DB_port = DB_port;
    }
}